def x = 16;
def result = ""

switch (x){
    case "ok":
        result = "found ok"
    case [1,2,4, 'list']:
        result = "list"
        break;
    case 10..19:
        result = "range"
        break
    case Integer:
        result = "integer"
        break
    default:
        result = "default"
}

assert result == "range"
